// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import './config/rem'
import utils from './config/utils'
//  时间选择组件
import Calendar from 'vue-mobile-calendar'

//  axios配置
import axios from 'axios'
import VueAxios from 'vue-axios'
import qs from 'qs'
// 请求格式
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
//设置测试服务器请求地址
axios.defaults.baseURL='http://hnzhixinkeji.cn/drp/';

//  原型引入
Vue.config.productionTip = false;
Vue.use(VueAxios, axios);
Vue.prototype.$axios = axios;
Vue.prototype.$qs = qs;
Vue.prototype.$utils = utils;
Vue.use(Calendar);


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
